package cn.edu.csust.cvs.management.repository.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.Immutable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @Auther: snail
 * @Date: 2021/1/22 00:30
 * @Description: 视频片段操作统计实体视图
 */
@Data
@Entity
@Immutable
@Table(name = "stats_clip_view")
@ApiModel("用户操作统计实体视图")
public class ClipStatsView {

    @ApiModelProperty("主键")
    @Id
    @Column(name = "id")
    private Integer id;

    @ApiModelProperty("视频片段id")
    @Column(name = "clip_id")
    private Integer clipId;

    @ApiModelProperty("视频id")
    @Column(name = "video_id")
    private Integer videoId;

    @ApiModelProperty("编辑次数")
    @Column(name = "edit_times")
    private Integer editTimes;

    @ApiModelProperty("切分开始时间(HH:mm:ss)")
    @Column(name = "start_time")
    private String startTime;

    @ApiModelProperty("持续时长(second)")
    @Column(name = "duration")
    private Integer duration;

}
